<template>
	<view>
		<image class="bgimg" src="@/static/my/sharebg.png" mode="aspectFill"></image>
		<view class="qrcode marginAuto">
			<image :src="apifun.URLimg+qrcode" mode="widthFix"></image>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				apifun:this.apifun,
				qrcode:''
			};
		},
		onLoad() {
			this.initData()
		},
		methods: {
			initData(){
				this.apifun.unirequest('/partner/user/getUserQrcode','post',{},(res)=>{
					if(res.code === 200){
						let datas = res.data;
						this.qrcode = datas.qrcode;
					}else{
						this.apifun.toast(res.msg)
					}
				})
			}
		},
	};
</script>

<style scoped lang="scss">
	.bgimg{
		position:fixed;
		left: 0;
		top: 0;
		width: 100%;
		height: 100%;
	}
	.qrcode{
		position: absolute;
		top: 40vh;
		left: 50%;
		width: 340rpx;
		height: 340rpx;
		margin-left:-170rpx;
		image{
			width:340rpx;
		}
	}
</style>